package com.jeesite.modules.jydq.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.jydq.entity.JydqComparisonRule;
import com.jeesite.modules.jydq.dao.JydqComparisonRuleDao;

/**
 * 比价规则表Service
 * @author dong
 * @version 2025-03-20
 */
@Service
public class JydqComparisonRuleService extends CrudService<JydqComparisonRuleDao, JydqComparisonRule> {
	
	/**
	 * 获取单条数据
	 * @param jydqComparisonRule
	 * @return
	 */
	@Override
	public JydqComparisonRule get(JydqComparisonRule jydqComparisonRule) {
		return super.get(jydqComparisonRule);
	}
	
	/**
	 * 查询分页数据
	 * @param jydqComparisonRule 查询条件
	 * @param jydqComparisonRule page 分页对象
	 * @return
	 */
	@Override
	public Page<JydqComparisonRule> findPage(JydqComparisonRule jydqComparisonRule) {
		return super.findPage(jydqComparisonRule);
	}
	
	/**
	 * 查询列表数据
	 * @param jydqComparisonRule
	 * @return
	 */
	@Override
	public List<JydqComparisonRule> findList(JydqComparisonRule jydqComparisonRule) {
		return super.findList(jydqComparisonRule);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param jydqComparisonRule
	 */
	@Override
	@Transactional
	public void save(JydqComparisonRule jydqComparisonRule) {
		super.save(jydqComparisonRule);
	}
	
	/**
	 * 更新状态
	 * @param jydqComparisonRule
	 */
	@Override
	@Transactional
	public void updateStatus(JydqComparisonRule jydqComparisonRule) {
		super.updateStatus(jydqComparisonRule);
	}
	
	/**
	 * 删除数据
	 * @param jydqComparisonRule
	 */
	@Override
	@Transactional
	public void delete(JydqComparisonRule jydqComparisonRule) {
		super.delete(jydqComparisonRule);
	}
	
}